<?php
$dbConfig = array(
    'DB_TYPE' => 'mysql',
    'DB_HOST' => 'localhost',
    'DB_NAME' => 'wangjia',
    'DB_USER' => 'root',
    'DB_PWD' => '',
    'DB_PORT' => '3306',
    'DB_PREFIX' => 'tk_',
);
$appConfig = array(
    'SHOW_PAGE_TRACE' => true,
    'LOG_RECORD' => true, // only if the debug model is true will take effect
    'MODULE_ALLOW_LIST' => array(
        'Home'
    ),
    'DEFAULT_MODULE' => 'Home',
    'SESSION_OPTIONS' => array(
        'expire' => 7200
    ),
    'SESSION_AUTO_START' => true,
    'LANG_AUTO_DETECT' => true,
    'VAR_LANGUAGE' => 'l',
    //paging item
    'LIMITITEM' => 20,
    // prevent XSS attack
    'DEFAULT_FILTER' => 'htmlentities',
    // use rewrite
    'URL_MODEL' => 2,
    'DEFAULT_TIMEZONE' => 'PRC', //设置时区为中国+8区
    'AUTH_CONFIG'=>array(
        'AUTH_ON' => false, //认证开关
        'AUTH_TYPE' => 1, // 认证方式，1为时时认证；2为登录认证。
        'AUTH_GROUP' => 'admin_auth_group', //用户组数据表名
        'AUTH_GROUP_ACCESS' => 'admin_auth_group_access', //用户组明细表
        'AUTH_RULE' => 'admin_auth_rule', //权限规则表
        'AUTH_USER' => 'admin_auth_user',//用户信息表
    ),
);
return array_merge(
    $dbConfig,
    $appConfig
);